package com.example.apitest.router;

import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * router 路径/跳转控制
 * path必须有至少两级的路径,不同module的一级路径必须不同
 */
public class RouterControl {

    public static final String VIEW_MAIN = "/view/main";
    public static final String IM_MAIN = "/im/main";
    public static final String IM_LOGIN = "/im/login";
    public static final String ELEMENT_MENU = "/element/menu";

    public static void jumpViewMain(Context context) {
        ARouter.getInstance().build("/view/main").navigation();
    }

    public static void jumpImMain(Context context) {
        ARouter.getInstance().build("/im/main").navigation();
    }

    public static void jumpImLogin(Context context) {
        ARouter.getInstance().build("/im/login").navigation();
    }

    public static void jumpElementMenu(Context context) {
        ARouter.getInstance().build("/element/menu").navigation();
    }

    public static void jumpStuKotlin(Context context) {
        ARouter.getInstance().build("/stuKotlin/main").navigation();
    }

    public static void jumpStuJava(Context context) {
        ARouter.getInstance().build("/stuJava/main").navigation();
    }

    public static void jumpJetPack() {
        ARouter.getInstance().build("/jetpack/menu").navigation();
    }

}
